local known = false;
local locale = GetLocale();
function NECB_Bar_ended(mob, spell, bartype) return; end
CECB_status_version_txt = "8.7.5";
----------------------------------------------------------------------------------------------------
if (locale == "esES") then
	known = true;
	NECB_Interruptions = "Desmayo, Castigar, Choque de tierra, Gubia, Abalanzarse, Aturdir, Aturdimiento de intercepciÃ³n, Disparo de dispersiÃ³n,  PisotÃ³n de guerra, Polimorfia: cerdo, Miedo, Martillo de justicia, Porrazo, Carga aturdidora, ExplosiÃ³n aturdidora, Arremetida aturdidora, SeducciÃ³n, Golpe en los riÃ±ones, Golpe bajo, Arremetida de conmociÃ³n, Disparo de conmociÃ³n mejorado, Picadura de dracoleÃ³n, Aturdimiento de revancha, Grito intimidador, Polimorfia: tortuga, Alarido psÃ­quico, Azote, Ola explosiva, Encadenar no-muerto, Desterrar, Ceguera, Control mental";
	CECB_MISC_CECB_MISC_IMMUNE = "immune";
	CECB_SPELL_STUN_DR = "Atontado DR";
	CECB_SPELL_FRENZY_CD = "Frenzy (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cff00ff00Presionar Bot\195\179nDrch |cffffffffpara mover el bot\195\179n.";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00CTRL + Bot\195\179nIzq|cffffffff = mueve el icono alrededor del MiniMap)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + LeftClick|cffffffff = Activar/Desactivar";
	NECB_Minimap_Tooltip[5] = "\nM\195\179dulos cargados:";
	NECB_Minimap_Tooltip[6] = "\n|cffff0000\194\161Todas las barras de lanzamiento est\195\161n desactivadas!";
	NECB_Minimap_Tooltip[7] = "Activado";
	NECB_Minimap_Tooltip[8] = "Tiempo CPU consumido por AddOns:";
	NECB_Minimap_Tooltip[9] = "Jugador |cffffffffRangos del registro de combate ranges |raumentado!";
	NECB_Fonts = {
		[1] = { name="Blizzard", path="Fonts\\FRIZQT__.TTF"},
		[2] = { name="FuturaBD", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurab.ttf"},
		[3] = { name="Adventure", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Adventure.ttf"},
		[4] = { name="Enigma", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Enigma__2.TTF"},
		[5] = { name="Emblem", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Emblem.ttf"},
		[6] = { name="Diablo", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Exh_____.ttf"},
		[7] = { name="FuturaBK", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurak.ttf"},
		[8] = { name="Forte", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Forte.ttf"},
		[9] = { name="AvantGarde", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Avant Garde Demi BT.ttf"},
	};
elseif (locale == "deDE") then
	known = true;
	NECB_Interruptions = "Blackout, Z\195\188chtigung, Erdschock, Solarplexus, Anspringen, Bet\195\164uben, Bet\195\164ubung abfangen, Streuschuss, Kriegsstampfen, Verwandlung: Schwein, Furcht, Hammer der Gerechtigkeit, Kopfnuss, Sturmangriffsbet\195\164ubung, Bet\195\164ubender Schlag, Bet\195\164ubender Schlag, Verf\195\188hrung, Nierenhieb, Fieser Trick, Ersch\195\188tternder Schlag, Verbesserter Ersch\195\188tternder Schuss, Stich des Fl\195\188geldrachen, Rachebet\195\164ubung, Drohruf, Verwandlung: Schildkr\195\182te, Psychischer Schrei, Hieb, Druckwelle, Untote fesseln, Verbannen, Blenden, Gedankenkontrolle";
	CECB_MISC_IMMUNE = "immune";
	CECB_SPELL_STUN_DR = "Stun DR";
	CECB_SPELL_FRENZY_CD = "Frenzy (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cff00ff00RechtsKlick halten|cffffffff = Knopf verschieben";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00+ALT|cffffffff = ohne Sprung nahe MiniMap)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + LinksKlick|cffffffff = AddOn ein-/ausschalten";
	NECB_Minimap_Tooltip[5] = "\nModule geladen:";
	NECB_Minimap_Tooltip[6] = "\n|cffff0000Alle CastBar Systeme sind deaktiviert!";
	NECB_Minimap_Tooltip[7] = "Aktive";
	NECB_Minimap_Tooltip[8] = "Verbauchte CPU-Zeit durch AddOns:";
	NECB_Minimap_Tooltip[9] = "|cffffffffCombatlog-Reichweite |rf\195\188r Spieler erh\195\182ht!";
	NECB_Fonts = {
		[1] = { name="Blizzard", path="Fonts\\FRIZQT__.TTF"},
		[2] = { name="FuturaBD", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurab.ttf"},
		[3] = { name="Adventure", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Adventure.ttf"},
		[4] = { name="Enigma", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Enigma__2.TTF"},
		[5] = { name="Emblem", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Emblem.ttf"},
		[6] = { name="Diablo", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Exh_____.ttf"},
		[7] = { name="FuturaBK", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurak.ttf"},
		[8] = { name="Forte", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Forte.ttf"},
		[9] = { name="AvantGarde", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Avant Garde Demi BT.ttf"},
	};
elseif (locale == "frFR") then
	known = true;
	NECB_Interruptions = "Aveuglement, Ch\195\162tier, Horion de terre, Suriner, Traquenard, Etourdir, Interception \195\169tourdissante, Fl\195\168che de dispersion, Choc martial, M\195\169tamorphose : cochon, Peur, Marteau de la justice, Assommer, Charge \195\169tourdissante, Explosion paralysante, Coup \195\169tourdissant, S\195\169duction, Aiguillon perfide, Coup bas, Bourrasque, Trait de choc am\195\169lior\195\169, Piq\195\187re de wyverne, Etourdissement vengeur, Cri d'intimidation, M\195\169tamorphose : Tortue, Cri psychique, Sonner, Vague explosive, Entraves des morts-vivants, Bannir, C\195\169cit\195\169, Contr\195\180le mental";
	CECB_MISC_IMMUNE = "immune";
	CECB_SPELL_STUN_DR = "Stun DR";
	CECB_SPELL_FRENZY_CD = "Frenzy (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cff00ff00Hold RightClick |cffffffffto move button.";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00+ALT|cffffffff = without jump near MiniMap)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + LeftClick|cffffffff = Turn AddOn on/off";
	NECB_Minimap_Tooltip[5] = "\nModules loaded:";
	NECB_Minimap_Tooltip[6]= "\n|cffff0000All CastBar Systems are deactivated!";
	NECB_Minimap_Tooltip[7] = "Active";
	NECB_Minimap_Tooltip[8] = "CPU Time consumed by AddOns:";
	NECB_Minimap_Tooltip[9] = "Player |cffffffffCombatlog ranges |rincreased!";
	NECB_Fonts = {
		[1] = { name="Blizzard", path="Fonts\\FRIZQT__.TTF"},
		[2] = { name="FuturaBD", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurab.ttf"},
		[3] = { name="Adventure", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Adventure.ttf"},
		[4] = { name="Enigma", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Enigma__2.TTF"},
		[5] = { name="Emblem", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Emblem.ttf"},
		[6] = { name="Diablo", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Exh_____.ttf"},
		[7] = { name="FuturaBK", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurak.ttf"},
		[8] = { name="Forte", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Forte.ttf"},
		[9] = { name="AvantGarde", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Avant Garde Demi BT.ttf"},
	};
elseif (locale == "koKR") then
	known = true;
	NECB_Interruptions = "의식 상실, Chastise, 대지 충격, 후려치기, 암습, 기절, 봉쇄 기절, 산탄 사격, 전투 발구르기, 변이: 돼지, 공포, 심판의 망치, 기절시키기, 돌진 기절, 기절의 폭발, 기절의 일격, 유혹, 급소 가격, 비열한 습격, 충격의 일격, 충격포 연마, 비룡 쐐기, 복수 기절, 위협의 외침, 변이: 거북이, 영혼의 절규, 강타, 화염 폭풍, 언데드 속박, 추방, 실명, 정신 지배";
	CECB_MISC_IMMUNE = "면역";
	CECB_SPELL_STUN_DR = "기절 DR";
	CECB_SPELL_FRENZY_CD = "광기 (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cffffffff버튼을 이동하려면 |cff00ff00오른쪽 클릭";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00+ALT|cffffffff = 미니맵 프레임에 붙지 않음)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + LeftClick|cffffffff = 애드온 활성/비활성";
	NECB_Minimap_Tooltip[5] = "\n모듈 로드됨:";
	NECB_Minimap_Tooltip[6] = "\n|cffff0000All CastBar 시스템 비활성화됨!";
	NECB_Minimap_Tooltip[7] = "활성화";
	NECB_Minimap_Tooltip[8] = "애드온에 사용된 연산 시간:";
	NECB_Minimap_Tooltip[9] = "플레이어 |cffffffff전투 기록 범위|r 증가됨!";
	NECB_Fonts = {
		[1] = { name="Blizzard", path="Fonts\\2002.TTF"},
	};
elseif (locale == "zhCN") then
	known = true;
	NECB_Interruptions = "昏厥, Chastise, 地震术, 凿击, 突袭, 昏迷, 拦截昏迷, 驱散射击, 战争践踏, 变形术, 变形术：猪, 恐惧, 制裁之锤, 闷棍, 冲锋击昏, 昏迷冲击, 昏迷猛击, 诱惑, 肾击, 偷袭, 震荡猛击, 强化震荡射击, 翼龙钉刺, 复仇昏迷, 破胆怒吼, 变形术：龟, 心灵尖啸, 重击, 冲击波, 束缚亡灵, 放逐术, 致盲, 精神控制";
	CECB_MISC_IMMUNE = "免疫";
	CECB_SPELL_STUN_DR = "晕眩递减";
	CECB_SPELL_FRENZY_CD = "狂暴 (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cff00ff00按住右键 |cffffffff移动按钮.";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00+ALT|cffffffff = 脱离小地图周围)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + 左键|cffffffff = 启用/禁用插件";
	NECB_Minimap_Tooltip[5] = "\n载入模块:";
	NECB_Minimap_Tooltip[6] = "\n|cffff0000所有施法条已禁用!";
	NECB_Minimap_Tooltip[7] = "启用";
	NECB_Minimap_Tooltip[8] = "CPU响应时间:";
	NECB_Minimap_Tooltip[9] = "玩家 |cffffffff战斗记录范围 |r已增强!";
	NECB_Fonts = {
		[1] = { name="默认", path="Fonts\\ZYKai_T.TTF"},
		[2] = { name="中易楷体1", path="Fonts\\ZYKai_C.TTF"},
		[3] = { name="中易楷体2", path="Fonts\\ZYKai_T.TTF"},
		[4] = { name="细黑", path="Fonts\\FZXHJW.TTF"},
	};
elseif (locale == "zhTW") then
	known = true;
	NECB_Interruptions = "昏厥, Chastise, 地震術, 鑿擊, 突襲, 昏迷, 攔截昏迷, 驅散射擊, 戰爭踐踏, 變豬術, 恐懼, 制裁之錘, 悶棍, 衝鋒擊昏, 昏迷衝擊, 昏迷猛擊, 誘惑, 腎擊, 偷襲, 震盪猛擊, 強化震盪射擊, 翼龍釘刺, 復仇昏迷, 破膽怒吼, 變龜術, 心靈尖嘯, 重擊, 衝擊波, 束縛不死生物, 放逐術, 致盲, 精神控制";
	CECB_MISC_IMMUNE = "免疫";
	CECB_SPELL_STUN_DR = "擊暈遞減";
	CECB_SPELL_FRENZY_CD = "狂亂 (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cff00ff00按住右鍵 |cffffffff移動按鈕.";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00+ALT|cffffffff = 脫離小地圖周圍)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + 左鍵|cffffffff = 啓用/禁用插件";
	NECB_Minimap_Tooltip[5] = "\n載入模組:";
	NECB_Minimap_Tooltip[6] = "\n|cffff0000所有施法條已禁用!";
	NECB_Minimap_Tooltip[7] = "啓用";
	NECB_Minimap_Tooltip[8] = "CPU響應時間:";
	NECB_Minimap_Tooltip[9] = "玩家 |cffffffff戰鬥記錄範圍 |r已增強!";
	NECB_Fonts = {
		[1] = { name="預設", path="Fonts\\FZLBJW.TTF"},
		[2] = { name="北魏楷書", path="Fonts\\FZBWJW.TTF"},
		[3] = { name="細黑", path="Fonts\\FZXHJW.TTF"},
		[4] = { name="剪紙", path="Fonts\\FZJZJW.TTF"},
	};
else
	if (locale == "enUS") or (locale == "enGB") then known = true; end
	NECB_Interruptions = "Blackout, Chastise, Earth Shock, Gouge, Pounce, Stun, Intercept Stun, Scatter Shot, War Stomp, Polymorph: Pig, Fear, Hammer of Justice, Sap, Charge Stun, Stunning Blast, Stunning Blow, Seduction, Kidney Shot, Cheap Shot, Concussion Blow, Improved Concussive Shot, Wyvern Sting, Revenge Stun, Intimidating Shout, Polymorph: Turtle, Psychic Scream, Bash, Blast Wave, Shackle Undead, Banish, Blind, Mind Control";
	CECB_MISC_IMMUNE = "immune";
	CECB_SPELL_STUN_DR = "Stun DR";
	CECB_SPELL_FRENZY_CD = "Frenzy (CD)";
	
	NECB_Minimap_Tooltip = { };
	NECB_Minimap_Tooltip[1] = "Natur EnemyCastBar";
	NECB_Minimap_Tooltip[2] = "|cff00ff00Hold RightClick |cffffffffto move button.";
	NECB_Minimap_Tooltip[3] = "|cffffffff(|cff00ff00+ALT|cffffffff = without jump near MiniMap)";
	NECB_Minimap_Tooltip[4] = "|cff00ff00ALT + LeftClick|cffffffff = Turn AddOn on/off";
	NECB_Minimap_Tooltip[5] = "\nModules loaded:";
	NECB_Minimap_Tooltip[6] = "\n|cffff0000All CastBar Systems are deactivated!";
	NECB_Minimap_Tooltip[7] = "Active";
	NECB_Minimap_Tooltip[8] = "CPU Time consumed by AddOns:";
	NECB_Minimap_Tooltip[9] = "Player |cffffffffCombatlog ranges |rincreased!";
	NECB_Fonts = {
		[1] = { name="Blizzard", path="Fonts\\FRIZQT__.TTF"},
		[2] = { name="FuturaBD", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurab.ttf"},
		[3] = { name="Adventure", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Adventure.ttf"},
		[4] = { name="Enigma", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Enigma__2.TTF"},
		[5] = { name="Emblem", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Emblem.ttf"},
		[6] = { name="Diablo", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Exh_____.ttf"},
		[7] = { name="FuturaBK", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Futurak.ttf"},
		[8] = { name="Forte", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Forte.ttf"},
		[9] = { name="AvantGarde", path="Interface\\Addons\\CEnemyCastBar\\Fonts\\Avant Garde Demi BT.ttf"},
	};
end
----------------------------------------------------------------------------------------------------
if (known) then
	function CEnemyCastBar_Gfind(arg1, event) --Gfind
		-- outsourced:
		-- NECB_OnEvent_PvP_SC => calls: CEnemyCastBar_Gfind_PvP(arg1, event); + more!
		-- NECB_OnEvent_Debuffs => calls: CEnemyCastBar_Gfind_Debuffs(arg1, event); + more!
		if (event == "CHAT_MSG_SPELL_BREAK_AURA" or event == "CHAT_MSG_SPELL_AURA_GONE_OTHER" or event == "CHAT_MSG_SPELL_AURA_GONE_SELF" or event == "CHAT_MSG_SPELL_AURA_GONE_PARTY") then
			local spell, mob = string.match(arg1, CEnemyCastBar_SPELL_FADE);
			if (spell) then
				if (NECB_SPELL_FADE_turnit) then
					CEnemyCastBar_Control_fades(spell, mob, "fades");
				else
					CEnemyCastBar_Control_fades(mob, spell, "fades");
				end
				return;
			end
			mob, spell = string.match(arg1, CEnemyCastBar_SPELL_REMOVED);
			if (spell) then
				if (NECB_SPELL_REMOVED_turnit) then
					CEnemyCastBar_Control_fades(spell, mob, "fades");
				else
					CEnemyCastBar_Control_fades(mob, spell, "fades");
				end
				return;
			end
		else
			local mob = string.match(arg1, CEnemyCastBar_MOB_DIES); -- faster and uses nearly no memory instead of gmatch
			if (mob) then
				if (NECB_PvE_death) then -- use func check, because of 5 sec delay if instance entered
					NECB_PvE_death(mob); -- c'thun only so far
				end
					CEnemyCastBar_Control(mob, mob, "died");
				return;
			end
			-- killing blow only for Victory_Rush and killing sounds routine:
			mob = string.match(arg1, CEnemyCastBar_MOB_KILLED);
			if (mob) then
					NECB_specials_parser(mob);
				return;
			end
		end
	end
else
	NECB_Victory_Rush = "Victory Rush";
	function NECB_PvE_Yell() end
	function NECB_PvE_Emote() end
	function NECB_PvE_EnterCombat() end
	function CEnemyCastBar_Gfind_PvE() end
	function NECB_PvE_CodeInit() end
	function NECB_PvE_DBInit() end
	function CEnemyCastBar_Gfind() end
	function CEnemyCastBar_Gfind_Debuffs() end
	function CEnemyCastBar_Gfind_PvP() end
	function CEnemyCastBar_Gfind_PvP_Gains() end
end
